/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package admin.provider;

import admin.util.UtilEjb;
import ejb.attribute.KscEventJndi;
import ejb.bean.AbstractFacade;
import ejb.bean.EnrollFacade;
import ejb.entity.Enroll;

public class EnrollProvider extends WrapperProvider<Enroll> {

    public static EnrollProvider getInstance() {
        return EnrollProviderHolder.INSTANCE;
    }

    public EnrollProvider() {
        super(Enroll.class);
    }

    @Override
    public AbstractFacade<Enroll> getAbstractFacade() {
        return getEnrollFacade();
    }

    private EnrollFacade getEnrollFacade() {
        return UtilEjb.getInstance().<EnrollFacade>getEJB(KscEventJndi.ENROLL_BEAN);
    }

    private static class EnrollProviderHolder {

        private static final EnrollProvider INSTANCE = new EnrollProvider();

        private EnrollProviderHolder() {
        }
    }
}
